package nullby.yoga.bo;

import org.json.JSONException;
import org.json.JSONObject;

public class Content {
	private final String ICON = "icon";
	private final String NAME = "name";
	private final String DESCRIPTION = "description";

	private String icon;
	private String name;
	private String description;

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Content(String icon, String name, String description) {
		super();
		this.icon = icon;
		this.name = name;
		this.description = description;
	}

	public Content(JSONObject jo) throws JSONException {
		this.icon = jo.getString(ICON);
		this.name = jo.getString(NAME);
		this.description = jo.getString(DESCRIPTION);
	}

	public Content(String string) {

	}

	public Content(CharSequence icon, CharSequence name,
			CharSequence description) {
		super();
		this.icon = icon.toString();
		this.name = name.toString();
		this.description = description.toString();
	}

}